<template>
  <view class="content">我是登录页</view>
</template>

<script setup>
import { ref, computed } from 'vue'
import { onLoad } from '@dcloudio/uni-app'

let params

onLoad(e => {
  params = e
  if (params.message) {
    uni.showToast({
      title: params.message,
      duration: 1500,
      icon: 'none'
    })
  }
})

function loginSuccess() {
  const pages = getCurrentPages()
  uni.$u.route({
    url: params.redirectPathUrl || 'pages/index/index',
    type: pages.length > 1 ? 'redirectTo' : 'reLaunch'
  })
}
</script>

<style lang="scss" scoped></style>
